package com.example.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

// @SpringBootApplication
// @EnableDiscoveryClient // 注册到eureka
// @EnableCircuitBreaker // hystrix开启注解
@EnableFeignClients(basePackages = "com.example.product.client") // 开启feign,引入商品服务提供的 FeignClient 接口
@SpringCloudApplication
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }

}
